package com.qq.weixin.mp.api.base.model;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * access token接口的返回值
 * @author li.jiang
 *
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public final class AccessTokenBean implements Serializable {

    private static final long serialVersionUID = -6066069872028798578L;
    /**
     * 获取到的凭证
     */
    private String accessToken;
    /**
     * 凭证有效时间，单位：秒
     */
    private Integer expiresIn;
    /**
     * @return the accessToken
     */
    public String getAccessToken() {
        return accessToken;
    }
    /**
     * @param accessToken the accessToken to set
     */
    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }
    /**
     * @return the expiresIn
     */
    public Integer getExpiresIn() {
        return expiresIn;
    }
    /**
     * @param expiresIn the expiresIn to set
     */
    public void setExpiresIn(Integer expiresIn) {
        this.expiresIn = expiresIn;
    }
    /* (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return "AccessTokenBean [access_token=" + accessToken + ", expires_in=" + expiresIn + "]";
    }

}
